package com.gagakuai.engine.impl.pvm;

import java.util.Map;

/*
 * @program: common-starters
 * @description: 流程虚拟机执行抽象
 * @author: houhong
 * @create: 2023-01-02 11:07
 */
public interface PvmExecution {

    /*
     * 信号执行
     */
    void signal(String signalName, Object signalData);

    /*
     * 当前执行的活动
     */
    PvmActivity getActivity();

    /*
    *  在执行中设置变量
    *
    */
    boolean hasVariable(String variableName);

    void setVariable(String variableName, Object value);

    Object getVariable(String variableName);

    Map<String, Object> getVariables();
}